package com.yitiao.designmodel.struct.decorator;

public class LiveVoiceDecorator implements LiveDecorator{
    private final Live live;

    public LiveVoiceDecorator(Live live) {
        this.live = live;
    }

    @Override
    public void enable(){
        System.out.println("开启声卡");
    }

    @Override
    public void startLive() {
        live.startLive();
        enable();
    }
}
